package com.hairline.hairlinemarket.service;

import com.github.pagehelper.PageInfo;
import com.hairline.hairlinemarket.bean.MarketGoods;

import java.util.List;
import java.util.Map;

/**
 * Author:杨小凯
 * Date:2023-04-20 18:31
 * Description:<描述>
 */
public interface GoodsService {
    List queryByNew(int start, Integer newLimit);

    List queryByHot(int start, Integer hotLimit);

    List queryByCatId(Integer id);

    Map<String, Object> selectById(Long id);

    List<MarketGoods> queryByCategory(List<Integer> l2List, int start, Integer catlogMoreLimit);

    // 根据goodsId查询详情
    Map<String, Object> selectByGoodsId(Integer id);

    // 查询到当前商品
    MarketGoods findById(Integer id);

    PageInfo<MarketGoods> queryByCategoryPage(int cid, int i, int related);

    Map<String, Object> selectCategory(Integer id);

    PageInfo<MarketGoods> selectGoodsList(Integer categoryId,Integer page,Integer limit);

    Integer selectGoodsCount();

}
